// .pragma library

Qt.include("sha1.js")
Qt.include("oauth.js")
//Qt.include("HttpAccess.js")

// Format
var FORMAT_JSON = ".json";
var FORMAT_XML = ".xml";
var FORMAT_ATOM = ".atom";


var URL_APIS = [];
// auth
URL_APIS["URL_OAUTH_REQUEST_TOKEN"] = "https://twitter.com/oauth/request_token";
URL_APIS["URL_OAUTH_AUTHORIZE"] = "https://twitter.com/oauth/authorize";
URL_APIS["URL_OAUTH_ACCESS_TOKEN"] = "https://twitter.com/oauth/access_token";

// Timelines
URL_APIS["URL_TIMELINES_HOME_TIMELINE"] = "https://api.twitter.com/1/statuses/home_timeline";
URL_APIS["URL_TIMELINES_MENTIONS"] = "https://api.twitter.com/1/statuses/mentions";
URL_APIS["URL_TIMELINES_PUBLIC_TIMELINE"] = "https://api.twitter.com/1/statuses/public_timeline";
URL_APIS["URL_TIMELINES_RETWEETS_BY_ME"] = "https://api.twitter.com/1/statuses/retweeted_by_me";
URL_APIS["URL_TIMELINES_RETWEETS_TO_ME"] = "http://api.twitter.com/1/statuses/retweeted_to_me";
URL_APIS["URL_TIMELINES_RETWEETS_OF_ME"] = "https://api.twitter.com/1/statuses/retweets_of_me";
URL_APIS["URL_TIMELINES_USER_TIMELINE"] = "https://api.twitter.com/1/statuses/user_timeline";
URL_APIS["URL_TIMELINES_RETWEETED_TO_USER"] = "https://api.twitter.com/1/statuses/retweeted_to_user";
URL_APIS["URL_TIMELINES_RETWEETED_BY_USER"] = "https://api.twitter.com/1/statuses/retweeted_by_user";

// Tweets
URL_APIS["URL_STATUSES_UPDATE"] = "https://api.twitter.com/1/statuses/update";
URL_APIS["URL_STATUSES_DELETE"] = "https://api.twitter.com/1/statuses/destroy/";
URL_APIS["URL_STATUSES_SHOW"] = "https://api.twitter.com/1/statuses/show/%s";
URL_APIS["URL_STATUSES_RETWEET"] = "https://api.twitter.com/1/statuses/retweet/%s";

// Direct Messages
URL_APIS["URL_DIRECT_MESSAGES"] = "https://api.twitter.com/1/direct_messages";
URL_APIS["URL_DIRECT_MESSAGES_SENT"] = "https://api.twitter.com/1/direct_messages/new";

// Friends & Followers
URL_APIS["URL_FOLLOWERS_IDS"] = "https://api.twitter.com/1/followers/ids"
URL_APIS["URL_FRIENDS_IDS"] = "https://api.twitter.com/1/friends/ids"
// exists
// incoming
// outgoing
// show
URL_APIS["URL_FRIENDSHIPS_CREATE"] = "https://api.twitter.com/1/friendships/create";
URL_APIS["URL_FRIENDSHIPS_DESTROY"] = "https://api.twitter.com/1/friendships/destroy";
URL_APIS["URL_FRIENDSHIPS_LOOKUP"] = "https://api.twitter.com/1/users/lookup"
// no retweet ids


// Favorites
URL_APIS["URL_FAVORITES"] = "https://api.twitter.com/1/favorites";
URL_APIS["URL_FAVORITES_CREATE"] = "https://api.twitter.com/1/favorites/create/%s";
URL_APIS["URL_FAVORITES_DESTROY"] = "https://api.twitter.com/1/favorites/destroy/%s";


// Lists
URL_APIS["URL_LISTS"] = "https://api.twitter.com/1/lists";
URL_APIS["URL_LISTS_SUBSCRIPTIONS"] = "https://api.twitter.com/1/lists/subscriptions";
URL_APIS["URL_LISTS_STATUES"] = "https://api.twitter.com/1/lists/statuses";
URL_APIS["URL_LISTS_POST_MEMBERS"] = "https://api.twitter.com/1/%s/%s/members";


// Search
URL_APIS["URL_SAVED_SEARCHES"] = "https://twitter.com/saved_searches";
URL_APIS["URL_SAVED_SEARCHES_SHOW"] = "https://twitter.com/saved_searches/show/%s";
URL_APIS["URL_SAVED_SEARCHES_CREATE"] = "https://twitter.com/saved_searches/create";
URL_APIS["URL_SAVED_SEARCHES_DESTORY"] = "https://twitter.com/saved_searches/destory/%s";

URL_APIS["URL_SEARCH"] = "https://search.twitter.com/search";



//URL_APIS["aaaa"] = aaa;


//リツイート
var URL_RETWEETS2 = ".xml";


//一時保存
var _token = "";


